<?php

class Myzen_View_Helper_LoginPanel extends Zend_View_Helper_Abstract {
    
    public function loginPanel() {
    	
    	if(!isset(Zend_Registry::get('app_session')->userDetails)) {
    	  echo '<a href="'.$this->view->baseURL().'/auth/index/index/">log in</a>';
    	  return;
    	}
    	
    	echo Zend_Registry::get('app_session')->userDetails['email'];
    	echo ' - <a href="'.$this->view->baseURL().'/auth/index/logout/">log out</a>';
    }
} //end class